package com.nz.net.hays.www;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class Apply extends Activity implements OnClickListener {
	TextView tv;
	Button applyjob;
	
	public void onCreate(Bundle ins)
	{
		
		super.onCreate(ins);
		setContentView(R.layout.apply);
		tv=(TextView)findViewById(R.id.jobDescription);
		applyjob=(Button)findViewById(R.id.buttonApply);
		applyjob.setOnClickListener(this);
		Intent i=getIntent();
		String abt=i.getStringExtra("name");
		System.out.println(abt);
		tv.setText(abt);
		
	}

	@Override
	public void onClick(View v) {
	if(v.getId()==R.id.buttonApply)
	{
		Toast.makeText(getApplicationContext(), "Job applied successfully.", Toast.LENGTH_LONG).show();
		
	}
		
	}

}
